package com.esunny.resourcevisualization.domain.entity;

/**
 * @version 1.0.0.0
 * @ClassName User
 * @Description 用户实体
 * @Author baochencong
 * @Date 2020/9/26 13:12
 */
public class User {
    /**
     * 主键
     */
    private int userId;
    /**
     * 用户名
     */
    private String username;
    /**
     * 真实姓名，中文名
     */
    private String realName;
	    /**
     * 登录密码
     */
    private String password;
    /**
     * 用户邮箱
     */
    private String email;
    /**     * 用户所属组id
     */
    private int userGroupId;
    /**
     * 用户所属组名称
     */
    private String userGroupName;
    /**
     * 用户权限
     * 0 普通用户
     * 1 管理员
     */
    private int userLevel;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

	public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }    public int getUserGroupId() {
        return userGroupId;
    }

    public void setUserGroupId(int userGroupId) {
        this.userGroupId = userGroupId;
    }

    public String getUserGroupName() {
        return userGroupName;
    }

    public void setUserGroupName(String userGroupName) {
        this.userGroupName = userGroupName;
    }

    public int getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(int userLevel) {
        this.userLevel = userLevel;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", realName='" + realName + '\'' +
                ", userGroupId=" + userGroupId +
                ", userGroupName='" + userGroupName + '\'' +
                ", userLevel=" + userLevel +
                '}';
    }
}
